Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add unhelpful button #330

Merged
merged 2 commits into from
Oct 3, 2023
Merged

Add unhelpful button #330

merged 2 commits into from
Oct 3, 2023

Conversation

mruwnik
Copy link
Collaborator

@mruwnik mruwnik commented Oct 1, 2023

image

One downside of this is that an article can be both liked and disliked at the same time. Though that can be a feature not a bug!

@@ -452,3 +452,5 @@ export const incAnswerColumn = async (column: string, pageid: PageId, subtract:

export const makeColumnIncrementer = (column: string) => (pageid: PageId, subtract: boolean) =>
incAnswerColumn(column, pageid, subtract)
export const makeColumnDecrementer = (column: string) => (pageid: PageId, subtract: boolean) =>
incAnswerColumn(column, pageid, !subtract)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

eeh, !subtract?!? 😖

TBH, I would prefer to have 2 columns in Coda to track helpful and unhelpful (2 - 1 has a different vibe from 100 - 99), but if it's already decided that we want only 1 column please get rid of the subtract parameter from all places, replacing it with a decAnswerColumn function (or some better way)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are now 2 columns

app/routes/questions/actions.tsx Outdated Show resolved Hide resolved
@mruwnik mruwnik merged commit ab4e94f into master Oct 3, 2023
1 check passed
@mruwnik mruwnik deleted the unhelpfull branch October 3, 2023 08:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants